package com.cjh.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "ACCOUNT")
public interface AccountFeign {

//    @PostMapping("/account/login")
//    Object login(@RequestParam("username") String username,
//                 @RequestParam("password") String password,
//                 @RequestParam("status") String status);

    /**
     * shiro调用的login
     * @param username
     * @param status
     * @return
     */
    @PostMapping("/account/login/{status}")
    Object login(@RequestParam("username") String username,
                 @PathVariable("status") String status);

}
